home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
djmeter
/
testmete.frm
< prev
Wrap
Text File
|
1998-12-16
|
2KB
|
92 lines
VERSION 5.00
Object = "*\A..\..\..\LIFESA~1\VBPROJ~1\PROGRE~1\ProgressMeter.vbp"
Begin VB.Form TestMeter
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin ProgressMeter.DJMeter DJMeter1
Height = 570
Left = 1155
TabIndex = 3
Top = 225
Width = 2760
_ExtentX = 4868
_ExtentY = 1005
Caption = "DJMeter1"
BackColor = -2147483633
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BackColor = -2147483633
End
Begin VB.HScrollBar HScroll1
Height = 255
Left = 960
Max = 100
TabIndex = 1
Top = 930
Width = 3135
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1665
TabIndex = 0
Top = 2520
Width = 1215
End
Begin VB.Label lblPercent
AutoSize = -1 'True
Height = 195
Left = 1920
TabIndex = 2
Top = 1200
Width = 45
End
End
Attribute VB_Name = "TestMeter"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim lngX As Long
Dim lngY As Long
For lngY = 0 To 100
DJMeter1.Percent = lngY
For lngX = 1 To 1000
DoEvents
Next lngX
Next lngY
End Sub
Private Sub HScroll1_Change()
DJMeter1.Percent = HScroll1.Value
End Sub
Private Sub DJMeter1_Change()
lblPercent.Caption = DJMeter1.Percent
End Sub